package com.weather.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weather.domain.Weather;
import com.weather.mapper.WeatherMapper;
import com.weather.service.WeatherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WeatherServiceImpl extends ServiceImpl<WeatherMapper, Weather> implements WeatherService {

    @Autowired
    private WeatherMapper weatherMapper;

    @Override
    public Weather selectWeather(String city) {
        return null;
    }

    @Override
    public int insertWeather(Weather weather) {
        return weatherMapper.insert(weather);
    }

    @Override
    public Weather updateWeather(Weather weather) {
        return null;
    }

    @Override
    public int deleteWeather(Weather weather) {
        return 1;
    }

}
